package com.isky.visual.db.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 结果集
 * </p>
 *
 * @author wudl
 * @since 2020-04-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Datastore对象", description="结果集")
public class Datastore implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty(value = "sql的类型 1代表自定义sql,2.代表拼装sql")
    private Integer sqltype;

    @ApiModelProperty(value = "用户的id")
    private Long userId;

    @ApiModelProperty(value = "数据库id")
    private Long dbid;

    @ApiModelProperty(value = "数据集的名称")
    private String statName;
//
//    @ApiModelProperty(value = "维度")
//    private String dimensions;
//
//    @ApiModelProperty(value = "度量")
//    private String measure;
//
//    @ApiModelProperty(value = "指标")
//    private String kpi;

    @ApiModelProperty(value = "原始json")
    private String jsons;

    @ApiModelProperty(value = "获取到的sql")
    private String sqls;



    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "数据有效性")
    private Boolean valid;

}
